using Verse;

namespace RimWorld;

public class Verb_BeatFire : Verb
{
	private const int DamageAmount = 32;

	public Verb_BeatFire()
	{
		verbProps = NativeVerbPropertiesDatabase.VerbWithCategory(VerbCategory.BeatFire);
	}

	protected override bool TryCastShot()
	{
		Fire fire = (Fire)currentTarget.Thing;
		Pawn casterPawn = CasterPawn;
		if (casterPawn.stances.FullBodyBusy || fire.TicksSinceSpawn == 0)
		{
			return false;
		}
		fire.TakeDamage(new DamageInfo(DamageDefOf.Extinguish, 32f, 0f, -1f, caster));
		casterPawn.Drawer.Notify_MeleeAttackOn(fire);
		return true;
	}
}
